import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home.vue'

Vue.use(VueRouter)
import centerRouter from '@/router/routes/center'
import cinemaRouter from '@/router/routes/cinema'
import filmRouer from '@/router/routes/film'
const routes = [
  centerRouter,
  cinemaRouter,
  filmRouer,
  {
    path:'/',
    redirect:'/film'
  }
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
